package com.bone.user.po;


import java.io.Serializable;
import java.util.Date;

import com.bone.util.AmountUtils;

public class UserAccount implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2627781814778828040L;

	
	private Long accountId;
	private Long userId;

	private String accountPassword;
	private String accountStatus;
	
	private Long refundBalance;
	private Long rechargeBalance;
	private Long compensateBalance;
	private Long frozenBalance;
	private Long createTime;
	
	
	
	
	// set get
	public Long getAccountId() {
		return accountId;
	}
	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getAccountPassword() {
		return accountPassword;
	}
	public void setAccountPassword(String accountPassword) {
		this.accountPassword = accountPassword;
	}
	public String getAccountStatus() {
		return accountStatus;
	}
	public void setAccountStatus(String accountStatus) {
		this.accountStatus = accountStatus;
	}
	public Long getRefundBalance() {
		return refundBalance;
	}
	public void setRefundBalance(Long refundBalance) {
		this.refundBalance = refundBalance;
	}
	public Long getRechargeBalance() {
		return rechargeBalance;
	}
	public void setRechargeBalance(Long rechargeBalance) {
		this.rechargeBalance = rechargeBalance;
	}
	public Long getCompensateBalance() {
		return compensateBalance;
	}
	public void setCompensateBalance(Long compensateBalance) {
		this.compensateBalance = compensateBalance;
	}
	public Long getFrozenBalance() {
		return frozenBalance;
	}
	public void setFrozenBalance(Long frozenBalance) {
		this.frozenBalance = frozenBalance;
	}
	public Long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	 
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getRefundBalanceYuan() {
		return AmountUtils.convertToYuan(refundBalance);
	}
	
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getRechargeBalanceYuan() {
		return AmountUtils.convertToYuan(rechargeBalance);
	}
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getCompensateBalanceYuan() {
		return AmountUtils.convertToYuan(compensateBalance);
	}
	/**
	 * 获取金额以元为单位.
	 * @return
	 */
	public float getFrozenBalanceBalanceYuan() {
		return AmountUtils.convertToYuan(frozenBalance);
	}
}
